-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make load_profile
importable from aiida module
#6609
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6609 +/- ##
==========================================
+ Coverage 77.51% 77.89% +0.39%
==========================================
Files 560 567 +7
Lines 41444 42181 +737
==========================================
+ Hits 32120 32854 +734
- Misses 9324 9327 +3 ☔ View full report in Codecov by Sentry. |
59d7923
to
bb35d26
Compare
Out of curiosity, which LSPs specifically are you talking about? The https://docs.python.org/3/tutorial/modules.html#importing-from-a-package |
I use |
ec71c9f
to
d4c4954
Compare
Hi @danielhollas, I update this PR. It is ready to review. The plan for the APIs was discussed during the coding week and it came with the PR #6636. For more general discussion about APIs we can go there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am quite confused by the ipython loader change, so if you can extend the docstring that would be helpful. Otherwise LGTM, thanks!
src/aiida/__init__.py
Outdated
from .tools.ipython.ipython_magics import AiiDALoaderMagics | ||
"""Load the AiiDA IPython extension, using ``%load_ext aiida``. | ||
|
||
:param ipython: InteractiveShell instance. If omitted, the global InteractiveShell is used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
In this function, the ipython
argument is not optional (it doesn't have a default value). So I think the docstring needs to be reworded
:param ipython: InteractiveShell instance. If omitted, the global InteractiveShell is used. | |
:param ipython: InteractiveShell instance. If None, the global InteractiveShell is used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks right, thanks for careful reviewing.
5107779
to
8bb411f
Compare
fixes #6608
load_profile()
is widely used and documented. Exposing it as API under aiida module directly can make a bunch of LSP happy.